home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / src / src.lha / Library / PositionerClass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-16  |  3.3 KB  |  134 lines

  1. /* ==========================================================================
  2. **
  3. **                   PositionerClass.h
  4. **
  5. ** ©1991 WILLISoft
  6. **
  7. ** ==========================================================================
  8. */
  9.  
  10. #ifndef POSITIONERCLASS_H
  11. #define POSITIONERCLASS_H
  12.  
  13. #include "Positioner.h"
  14. #include "ValuatorClass.h"
  15.  
  16.  
  17. struct PositionerClass
  18. {
  19.    const PClass *isa;
  20.    char  *ClassName;
  21.  
  22.    void   (*CleanUp)
  23.              __PARMS(( PObject *self ));
  24.    Point (*Location)
  25.              __PARMS(( GraphicObject *self ));
  26.    Point (*SetLocation)
  27.              __PARMS(( GraphicObject *self,
  28.               PIXELS      LeftEdge,
  29.               PIXELS      TopEdge ));
  30.    Point (*Size)
  31.              __PARMS(( GraphicObject *self ));
  32.    Point (*AskSize)
  33.              __PARMS(( GraphicObject *self,
  34.               PIXELS            Width,
  35.               PIXELS            Height ));
  36.    Point (*SetSize)
  37.              __PARMS(( GraphicObject *self,
  38.               PIXELS      Width,
  39.               PIXELS      Height ));
  40.    UWORD  (*SizeFlags)
  41.              __PARMS(( GraphicObject *self ));
  42.  
  43.    void (*Render)
  44.              __PARMS(( GraphicObject *self,
  45.               RastPort  *RPort ));
  46.  
  47.    BOOL (*SetTitle)
  48.              __PARMS(( GraphicObject *self,
  49.               char      *title ));
  50.  
  51.    char *(*Title)
  52.              __PARMS(( GraphicObject *self ));
  53.  
  54. /* additions for font information */
  55.    TextAttr *(*DefaultFont) __PARMS(( GraphicObject *self ));
  56.    BOOL (*SetDefaultFont) __PARMS(( GraphicObject *self, TextAttr *default_font ));
  57.  
  58.    AlignInfo *(*TextAlignment) __PARMS(( GraphicObject *self ));
  59.  
  60.    BOOL (*SetTextAlignment)
  61.              __PARMS(( GraphicObject *self,
  62.               UBYTE         Flags,
  63.               BYTE          Xpad,
  64.               BYTE          Ypad ));
  65.  
  66.    PClass *BuilderMethods;
  67.  
  68.    struct pcgWindow *(*InteractorWindow)
  69.              __PARMS(( Interactor *self ));
  70.  
  71.    void (*SetInteractorWindow)
  72.              __PARMS(( Interactor *self,
  73.               struct pcgWindow *window ));
  74.  
  75.    Gadget *(*FirstGadget)
  76.              __PARMS(( Interactor *self ));
  77.  
  78.    USHORT (*nGadgets)
  79.              __PARMS(( Interactor *self ));
  80.  
  81.    ULONG (*IDCMPFlags)
  82.              __PARMS(( Interactor *self ));
  83.  
  84.    USHORT (*ClaimEvent)
  85.              __PARMS(( Interactor *self,
  86.               IntuiMessage *event ));
  87.  
  88.    USHORT (*Respond)
  89.              __PARMS(( Interactor *self,
  90.               IntuiMessage *event ));
  91.  
  92.    void (*Refresh)
  93.              __PARMS(( Interactor *self ));
  94.  
  95.    BOOL (*EnableIactor)
  96.              __PARMS(( Interactor *self,
  97.               BOOL       enable ));
  98.  
  99.    BOOL (*isEnabled)
  100.              __PARMS(( Interactor *self  ));
  101.  
  102.    BOOL (*Activate)
  103.              __PARMS(( Interactor *self,
  104.               BOOL       activate ));
  105.  
  106.    BOOL (*isActive)
  107.              __PARMS(( Interactor *self ));
  108.  
  109.    LONG (*Value)
  110.              __PARMS(( Valuator *self ));
  111.  
  112.    LONG (*SetValue)
  113.              __PARMS(( Valuator *self,
  114.               LONG      selection ));
  115.  
  116. /*--- New Methods ----------------------------*/
  117.  
  118.    USHORT (*KnobSize)
  119.              __PARMS(( Positioner *self ));
  120.  
  121.    USHORT (*SetKnobSize)
  122.              __PARMS(( Positioner *self,
  123.               USHORT      knobsize ));
  124.  
  125. };
  126.  
  127.  
  128. struct PositionerClass *PositionerClass __PARMS(( void ));
  129.  
  130. void PositionerClass_Init __PARMS(( struct PositionerClass *class ));
  131.  
  132.  
  133. #endif
  134.